<style>
	.block-mb15{
		display: inline-block;margin-bottom: 15px;
	}
</style>
<div class="container-fluid" style="padding: 20px 10px 0px 10px">
	<div class="row-fluid">
		<div class="well">
		    <ul class="nav nav-tabs">
		      <li class="active"><b>项目管理</b></li>
		    </ul>
		    <div id="myTabContent" class="tab-content">
				<div class="tab-pane active in" id="home">
					<form id="formid" action="/project/addGoods" method="post">
						<span class="block-mb15" style="margin-left: 13px;">项目名称：<input type="text" value="<?=$getData['goods_name']?>" placeholder="项目名称" style="width:400px;margin-left: 5px;" name="goods_name" class="goods_name">
						</span>
						<span class="block-mb15" style="margin-left: 13px;">项目介绍：<textarea name="goods_desc" style="height: 100px;width: 400px;margin-left: 75px;resize: none"><?=htmlspecialchars_decode($getData['goods_desc'])?></textarea></span>
						<input type="hidden" value="<?=$getData['goods_id']?>" name="goods_id">
						<input type="hidden" value="1" name="dosubmit" />
					</form>
				</div>
				<div class="btn-toolbar">
				    <button class="btn btn-primary" id="btn-save" style="margin:18px 0 0 88px"><i class="icon-save"></i> 保存</button>
				  <div class="btn-group">
				  </div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$(function(){
	$('.setImdBtn').click(function(){
		$('#setImd').selfups();
	});

	$('#btn-save').click(function(){
		if($('input[name="goods_name"]').val() == ''){
				showmsg('请输入项目名');
				return false;
		}else{
			$('#formid').submit();
		}
	});

    function checkNum(num)
    {
        var reg = /^[0-1]{1}(.[0-9]{0,2})?$/;
        if(reg.test(num)) {
            return true;
        }
        return false ;
    }

	function checkPrice(num){
		var reg = /^\d+(\.{1}\d{1,2})?$/;
		if(reg.test(num)) {
			return true;
		}
		return false ;
	}
})
</script>